﻿using System;
using Interfaces.Information_Interfaces;

namespace Presenters
{
    public class ErrorViewPresenter
    {
        private IErrorView view = null;
        public string exception { get; set; }
        public string nameOperation { get; set; }

        public ErrorViewPresenter(IErrorView view)
        {
            this.view = view;
        }

        /// <summary>
        /// Zamyka okno wyjątku.
        /// </summary>
        public void ExitApp()
        {
            view.Close();
        }
    }
}
